home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.2 / Audio / COMPILING < prev    next >
Encoding:
Text File  |  1992-08-27  |  3.1 KB  |  98 lines

  1. COMPILING THE AUDIO EXAMPLES
  2. ============================
  3.  
  4. I tried all three versions of C compilers that I have.
  5. The following sequence of commands produced the object
  6. files you have on this disk.  
  7.  
  8. The object files in the directory EXECUTABLE.FILES
  9.  
  10. They are labeled AmigaC.exe
  11.                  ManxC.exe
  12.                  LatticeC.exe
  13.  
  14. ---------------------------------------------------------------------
  15. NOTE:     These instructions are for RELEASE.1 Source code.
  16.  
  17. I have since combined globals.c and audiotools.h into the tools source
  18. code and therefore you will not necessarily find those files in later
  19. releases.
  20. ---------------------------------------------------------------------
  21.  
  22.  
  23.  
  24. Common to ALL sequences:  (Note: I use a two 3.5 inch floppy system)
  25. -------------------------
  26. copy audiotools.h to ram:
  27. copy globals.c to ram:
  28. copy audiotools.c to ram:
  29.  
  30.  
  31. --------------------------------------------------------------------
  32. If you are using Amiga C          in drive df1:
  33.                  (Lattice C, 3.03)
  34.  
  35.     cd df1:examples
  36.  
  37.     execute makesimple ram:audiotools
  38.  
  39.         rename ram:audiotools to ram:audio.AmiC.exe
  40.  
  41. ---------------------------------------------------------------------
  42. If you are using Manx C, V3.4a (with patch 1.3), Disk 1 in drive df0:
  43.  
  44.        cc +L ram:audiotools.c
  45.  
  46.        ln +A ram:audiotools.o c32.lib
  47.  
  48.        rename ram:audiotools to ram:audio.ManxC.exe
  49.  
  50. ---------------------------------------------------------------------
  51. If you are using Lattice C 3.10 Disk #1 in drive df0:
  52.                             and Disk #2 in drive df1:
  53.  
  54.     cd ram:
  55.  
  56.     lc1 audiotools
  57.     lc2 audiotools
  58.  
  59.  blink from LIB:c.o+audiotools.o to audiotools LIB LIB:lc.lib+LIB:amiga.lib 
  60.            
  61.  rename ram:audiotools to ram:audio.LatC.exe
  62.  
  63.  
  64. -----------------------------------------------------------------
  65. My apologies to C-purists.  The listings in the magazine had
  66. to be crammed down so that they'd fit a 56-column wide line.
  67. If I had known that in advance of submitting them, I would
  68. have watched my line lengths a bit better.
  69.  
  70. Also, there are a few routines here for which there is a
  71. "return(0)" stuffed in at the end, for no apparent reason.
  72. These lines are totally extraneous in most cases and were
  73. simply installed to keep one of the compilers from
  74. issuing any warnings about return value mismatches.
  75.  
  76. This same code compiles with no warnings or errors on
  77. any one of the above named compilers.
  78.  
  79. Please note that I have released these routines into the public
  80. domain, essentially with no promise of support.  However, I
  81. am interested in monitoring what the routines finally become.
  82. I plan to release upgrades on an as-available basis (described
  83. in UPDATE.POLICY), but basically you are on your own.
  84.  
  85. I WOULD like to hear about bugs you may uncover.  I do believe,
  86. however, that I have provided for much of the error handling
  87. you might need.  Because it is public domain, and no support
  88. or guarantees are provided, if you do find bugs, I cannot
  89. promise to be able to fix them, but I'll at least acknowledge
  90. their receipt if you do report them.  If there is a fix, I'll
  91. tell you about it.
  92.  
  93.  
  94. Good luck.
  95.  
  96.  
  97. Rob Peck
  98.